class  GradeCal
{
	public static void main(String[]args) 
	{
	int mark = Integer.parseInt(args[0]);
	String grade;
                if (mark>100) grade = "YOUR MARK OVER FLOW";
	else if(mark>=80&&mark<=100) grade="A";
                else if(mark>=76&&mark<=79) grade="B+";
	else if(mark>=70&&mark<=75) grade="B";
                else if(mark>=66&&mark<=69) grade="C+";
	else if(mark>=60&&mark<=65) grade="C";
               else if(mark>=56&&mark<=59) grade="D+";
	else if(mark>=50&&mark<=55) grade="D";
                else if(mark>=0&&mark<=49) grade="F";
	else grade="YOUR MARK UNDER FLOW";
	System.out.println("Mark = "+mark+ "Grade = "+grade);
	}
}
